package jquery.ajax.json;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.Gson;

public class JsonHelloWorld {

	public static void main(String[] args) {
		Gson gson = new Gson();
		Map<Integer, String> map = new HashMap<Integer, String>();
		map.put(1, "Monday");
		map.put(2, "Tuesday");
		map.put(3, "Wednesday");
		map.put(4, "Thursday");
		map.put(5, "Friday");
		map.put(6, "Saturday");
		map.put(7, "Sunday");
		String json = gson.toJson(map, map.getClass());
		System.out.println(json);
		

	}

}
